package com.gds.wiki.cloud.orderCenter.client.order.api;

import com.gds.wiki.cloud.framework.common.dto.ResponseDto;
import com.gds.wiki.cloud.orderCenter.client.order.hystrix.OrderApiFallbackFactory;
import com.gds.wiki.cloud.orderCenter.client.order.model.Order;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "gds-order",path = OrderApi.mapping,fallbackFactory = OrderApiFallbackFactory.class)
public interface OrderApi {

    static String mapping="/api/order";
    @PostMapping
    ResponseDto getBySelf(@RequestBody Order order);

    @PostMapping
    ResponseDto asd();
}
